package com.bgt.springboot.first.repository;

import com.bgt.springboot.first.vo.User;
import com.bgt.springboot.first.vo.UserUuid;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by bgt on 2017/4/18.
 */
@Repository
public interface UserUuidRepository extends CrudRepository<UserUuid,String> {
    @Query("select n from UserUuid n where n.id=?1")
     List<UserUuid> findById(String id);
   @Query("from UserUuid n where n.id =:cn")
     List<UserUuid> findById2(@Param("cn") String cn);


}
